package tests;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JProgressBar;

public class Progress extends JFrame {
	Progress(){
		setSize(800,600);
		setLayout(new GridLayout());
		add(new JProgressBar(){
			{
			setMaximum(2000);
			setValue(1000);
			setString (""+getPercentComplete ()*100+"%");
			setStringPainted (true);
			setMinimum(0);
			}
		});
		setVisible(true);
	}
	
	public static void main(String[] args) {
		new Progress();
	}
}
